package com.himiotech.core.project.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.himiotech.core.project.helper.anno.Excel;
import com.himiotech.core.project.model.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 通知公告表 sys_notice
 *
 * @author wuwenbin
 * @date 2021-05-27 20:09:48
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_notice")
@Accessors(chain = true)
public class Notice extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 公告ID
     */
    @TableId(type = IdType.AUTO)
    private Integer noticeId;

    /**
     * 公告标题
     */
    @Excel(name = "公告标题")
    private String noticeTitle;

    /**
     * 公告类型（1通知 2公告）
     */
    @Excel(name = "公告类型", readConverterExp = "1=通知,2=公告")
    private String noticeType;

    /**
     * 公告内容
     */
    private String noticeContent;

    /**
     * 公告状态（0正常 1关闭）
     */
    @Excel(name = "公告状态", readConverterExp = "0=正常,1=关闭")
    private String status;


}

